Ext.define('AM.controller.Panels', {
	extend : 'Ext.app.Controller',

	stores : ['lucrare.Articole'],

	models : ['lucrare.Articole'],

	views : ['panels.Navigare', 'panels.Lucrare', 'panels.SouthPanel',
			'panels.Detalii', 'panels.BazaDeDate', 'tabpanels.BazaDeDate',
			'tabpanels.Lucrare', 'grids.lucrare.Articole'],

	refs : [{
				ref : 'usersPanel',
				selector : 'panel'
			}],

	init : function() {

		console
				.log('Initializare controller panouri');

		this.control({
					'viewport > userlist dataview' : {
						itemdblclick : this.editUser
					},
					'useredit button[action=save]' : {
						click : this.updateUser
					}
				});
	}

});
